package com.wxsong.authplatform.authweb.service.authority;

import com.wxsong.authplatform.authweb.model.authority.Authority;
import com.wxsong.authplatform.authweb.model.menu.Menu;

import java.util.List;
import java.util.Map;

public interface AuthorityService {

    Authority getByName(String name);

    List<Authority> list(int from, int pageSize, Map<String, Object> paramMap);

    Long count(Map<String, Object> paramMap);

    int add(Authority authority);

    int updateInfo(Long id, String name);

    int delete(Long[] ids);

    Authority getById(Long id);

    List<Menu> hasMenus(Long[] ids);

    List<Menu> noMenus(Long[] ids);

    int modifyMenus(String ids, Long roleId);

}
